|
|
|
|
|
|
|
You could use an ADO Data Control on the form to access the database. However, for this example, you are going to use the Data Environment connection that you previously defined in this project. To connect the Data Repeater to the Data Environment, set the following properties for the Data Repeater: |
|
|
|
 |
|
|
|
|
DataSource deNorthWind
DateMember cmdEmployee |
|
|
|
|
|
|
|
|
Then, click the RepeaterControlName property to display a drop-down list of all controls available on the computer. On the list, click EmpControl.ctlEmp. The selected control will be repeated in the Data Repeater control (see Figure 12.25). |
|
|
|
|
|
|
|
|
Figure 12.25.
The Data Repeater will automatically show the custom control
as many times as possible during both design- and runtime. |
|
|
|
|
|
|
|
|
The last step in the process is to attach the custom controls properties to the record source. Open the Data Repeater Properties dialog, click the RepeaterBindings tab (see Figure 12.26) to set each of the text box and check box properties. |
|
|
|
|
|